.container {
    width: 1200px;
    margin: 0 auto;
}

/* 头部 */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 55px;
    width: 100%;
    margin-bottom: 10px;
    background-color: #cf3a2b;
}

.header .headermain {
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.headerLink {
    font-size: 20px;
    transition: all .5s;
}

.headerLink:hover {
    transform: scale(1.6);
}

.avatar {
    height: 55px;
    width: 100%;
    border-radius: 50%;
    transition: all .3s;
}

.avatar:hover {
    transform: scale(1.1);
}

/* 头部结束 */


/* 主区域1 */
.main1 {
    display: flex;
    height: 500px;
}

.main1 .nav {
    flex: 2;
    margin-right: 3px;
}

.main1 .nav ul {
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    line-height: 60px;
}

.main1 .nav ul li {
    flex: 1;
    background-color: pink;
    transition: all .5s;
    border-radius: 0 10px 10px 0;
}

.main1 .nav ul li:last-child {
    border: none;
}

.main1 .nav ul li:hover {
    background-color: #6cf;
}

/* ------- */

.main1 .banner {
    flex: 8;
    text-align: center;
    background-color: #6cf;
    overflow: hidden;
}

.main1 .banner img {
    /* display: none; */
    width: 100%;
}


/* 主区域2 */

.main2 {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;

}

.main2 .body {
    width: 270px;
    height: 300px;
    margin: 20px 0;
    background-color: #6cf;

    transition: all .2s;
}

.main2 .body:hover {
    transform: translateY(-5px);
    box-shadow: 1px 8px 6px 3px rgba(0, 0, 0, .5);
}


/* 底部 */
.footer {
    width: 100%;
    height: 400px;
    background-color: #fafafb;
}

.footer ul {
    float: right;
}

.footer a {
    display: inline-block;
}

.footer a:hover {
    color: red;
}